<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function Bank() {
        var n = window.prompt();
        var arr = n.split('');
        if (arr.length <= 4) {
        } else if (arr.length > 4 && arr.length <= 8) {
        } else if (arr.length > 8 && arr.length <= 10) {
        } else {
          alert('请输入合法数字');
          return;
        }
      }
      Bank();
    </script>
  </body>
</html>
